package com.maychat.mapper;

import com.maychat.pojo.ChatMessage;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ChatMessageMapper {
    Integer insertChatMessage(ChatMessage chatMessage);

    List<ChatMessage> selectCond(List<String> ids, Long lastMsgTime);

    ChatMessage selectById(Long id);

    void updateById(ChatMessage updateChatMessage);
}
